package cn.learn.service.impl;

import cn.learn.mapper.NsrMapMapper;
import cn.learn.service.INsrMapService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 导入数据到ES
 *
 * @author huangyezhan
 * @version 1.0
 * @date 2020年06月23日10:36
 */
@Service
public class NsrMapServiceImpl implements INsrMapService {

    @Resource
    private NsrMapMapper nsrMapMapper;

    @Override
    public List<Map<String, String>> listPage(Integer pageNum, Integer pageSize) {
         pageNum = pageNum * pageSize;
        return nsrMapMapper.getData(pageNum, pageSize);
    }

}
